#include "junix.h"

int
main(int argc, char **argv)
{
	char* p=NULL;
	int n=0;
	ssize_t sz;
	int delim = ' ';
	stdin=fopen(__FILE__,"r");
	if(stdin==NULL)
		err_quit("fopen error");

	while( (sz=getdelim(&p, &n, delim,  stdin)) > 0)
	{
//		int len = strlen(p);
//		printf("strlen:%d -> ",len);
		//assert( p[len-1] == '\n');
		//p[len-1] = '\0';
		fprintf(stdout,"%s\n",p);
	}
	return 0;
}

